CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.spmn_contracting_area_relation(
id                                                 bigint                         COMMENT '主键ID',
fee_id                                             bigint                         COMMENT '承包区报价明细ID',
contracting_area_id                                bigint                         COMMENT '承包区ID'
)
COMMENT '承包区报价明细关联表'
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET 
LOCATION '/dw/hive/spmi_ods.db/external/spmn_contracting_area_relation'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
);